package com.cooling.springcloud;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单服务
 *
 * @author wangyue
 * @date 2020-07-26 17:12
 */
@RestController
public class OrderService {

    @Value("${server.port}")
    private String port;

    /**
     * 查询订单集合
     *
     * @author wangyue
     * @date 2020-07-26 17:13
     */
    @GetMapping("/orders")
    public String listOrder() {
        // TODO
        System.out.println("port：" + port);
        return "listOrder success " + port;
    }

}
